package com.yingdong.db.domain;

public class DBObjects {
	public static final int DBSTATUS_INSERT = 0;

	public static final int DBSTATUS_UPDATE = 1;

	public static final int DBSTATUS_UPDATED = 2;

	public static final int DBSTATUS_DELETE = 3;

	public static final int DBSTATUS_DELETED = 4;

	private int dbStatus = 0;

	public int getDbStatus() {
		return dbStatus;
	}

	public void setDbStatus(int dbStatus) {
		this.dbStatus = dbStatus;
	}

	public void changeDBStatus() {
		if (dbStatus == DBSTATUS_UPDATED) {
			dbStatus = DBSTATUS_UPDATE;
		}
	}
}
